package com.pushtime.web.rest.vm;

public class DataVM {
    private String data;

    private DataVM() {}

    public static DataVM of(String data) {
        DataVM dataVM = new DataVM();
        dataVM.data = data;
        return dataVM;
    }

    public static DataVM of(double data) {
        DataVM dataVM = new DataVM();
        dataVM.data = String.valueOf(data);
        return dataVM;
    }

    public static DataVM of(int data) {
        DataVM dataVM = new DataVM();
        dataVM.data = String.valueOf(data);
        return dataVM;
    }

    public static DataVM of(long data) {
        DataVM dataVM = new DataVM();
        dataVM.data = String.valueOf(data);
        return dataVM;
    }

    public static DataVM of(float data) {
        DataVM dataVM = new DataVM();
        dataVM.data = String.valueOf(data);
        return dataVM;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "DataVM{" +
            "data='" + data + '\'' +
            '}';
    }
}
